Tidy return value of rtrim. From Fouts.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 7 Jan 2003 05:31:05 +0000 (05:31 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 7 Jan 2003 05:31:05 +0000 (05:31 +0000)
gpsbabel/defs.h
gpsbabel/util.c

index b0aa68ec7e1a048c787b33f090de86fe1e04f0ea..264ad482f0ae9279167aa4f83bd535c5c8ca7b8b 100644 (file)
@@ -211,7 +211,7 @@ void printposn(const coord *c, int is_lat);
 void *xcalloc(size_t nmemb, size_t size);
 void *xmalloc(size_t size);
 char *xstrdup(const char *s);
-void *rtrim(char *s);
+void rtrim(char *s);
 
 /*
  * PalmOS records like fixed-point numbers, which should be rounded
index 83c3d65e81bb471fb15ba17321bf50af780b7382..c74a6084aceb3d02baa0b463ab1e8975c557c4d1 100644 (file)
@@ -60,11 +60,9 @@ xstrdup(const char *s)
        return o;
 }
 
-void *
+void 
 rtrim(char *s)
 {
-       char *p;
-
        while (*s) {
                s++;
        }
@@ -74,7 +72,6 @@ rtrim(char *s)
                *s = 0;
                s--;
        }
-
 }